Repository navigation
iio: light: add ams TCS3430 ALS driver and enable on Surface Pro X - #204
Open
robertijtsma wants to merge 3 commits into
Open
robertijtsma wants to merge 3 commits into
robertijtsma wants to merge 3 commits into
Conversation
Add Devicetree binding schema for the ams OSRAM TCS3430 ambient light and CIE 1931 XYZ tristimulus color sensor. Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
Add an IIO driver for the ams OSRAM TCS3430 ambient light and XYZ tristimulus color sensor (present at I2C address 0x39 on the Microsoft Surface Pro X). Exposes processed photopic light intensity alongside raw Z, Y, IR1, and X intensity channels, automatic 1x..64x gain stepping, integration time reporting, and system suspend/resume power management. Tested on Microsoft Surface Pro X SQ2 (SC8180X, Linux 7.3.1-1-surface). Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
…,tcs3430 The ambient light sensor at 0x39 on i2c2 is an ams OSRAM TCS3430 (chip ID 0xdc), not an Avago APDS9960. Update the compatible string to ams,tcs3430. Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves the
// TODO: this should actually be a TCS3430insc8180x-surface-pro-x.dtsby adding an upstream-style IIO driver and DT binding for the ams OSRAM TCS3430 ambient light / XYZ color sensor ati2c2@0x39.Commits
dt-bindings: iio: light: add ams TCS3430: addsDocumentation/devicetree/bindings/iio/light/ams,tcs3430.yaml.iio: light: add ams TCS3430 ambient light and XYZ color sensor driver: addsdrivers/iio/light/tcs3430.c(CONFIG_TCS3430), exposing processed photopic light intensity alongside raw Z, Y, IR1, and X channels, automatic 1x..64x gain stepping, integration time, andDEFINE_SIMPLE_DEV_PM_OPSsuspend/resume power management.arm64: dts: qcom: sc8180x-surface-pro-x: switch ALS compatible to ams,tcs3430: updatesals@39fromavago,apds9960toams,tcs3430.Verification
scripts/checkpatch.plwith 0 errors and 0 style warnings.tcs3430.kobuilds cleanly withmake W=1against7.3.1-1-surface(0 warnings).sc8180x-surface-pro-x.dtspreprocesses and compiles cleanly withdtc.0xdc) across normal operation ands2idlesuspend/resume.